package com.shanghai3h.citygrid.api.controller;

import com.shanghai3h.citygrid.api.model.UserInfo;
import com.shanghai3h.citygrid.api.repository.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/user")
@RestController
public class TokenController {
    private UserService userService;
    @Autowired
    public TokenController(UserService service){
        userService=service;
    }

    @RequestMapping(method=RequestMethod.POST,value = "/login")
    public String token(@RequestBody UserInfo userInfo){
        return "";
    }
}
